<form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">

            <input type="hidden" name="types_first_id" value="">
            <input type="hidden" name="types_second_id" value="">
            <input type="hidden" name="types_third_id" value="">
            <span class="dropDown"> <a class="dropDown_A" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">选择类型</a>
                    <ul class="dropDown-menu menu radius box-shadow">
                        {volist name="typeTree" id="first" empty="请先创建店铺类型"}
                        <li><a href="javascript:;">{$first.name}</a>
                            {if condition="!empty($first._child)"}
                            <ul class="dropDown-menu menu radius box-shadow">

                                {volist name="first._child" id="second"}
                                    <li>
                                        <a href="javascript:;">{$second.name}</a>
                                        {if condition="!empty($second._child)"}
                                            <ul class="dropDown-menu menu radius box-shadow">
                                                {volist name="second._child" id="third"}
                                                <li><a href="javascript:selectType({$first.id},{$second.id},{$third.id},'{$first.name}/{$second.name}/{$third.name}');">{$third.name}</a></li>
                                                {/volist}
                                            </ul>
                                        {/if}
                                        </li>
                                {/volist}

                            </ul>
                            {/if}
                        </li>
                        {/volist}
                    </ul>
                </span>
            <input type="text" readonly class="input-text" value="{$vo.types_name?? ''}" id="sel-types" placeholder="请点击左边按钮选择" datatype="*" nullmsg="请选择分类" style="width: 200px">
    <input type="text" class="input-text" style="width:200px" placeholder="商家编号" name="number" value="{$Request.param.number}">
    <input type="text" class="input-text" style="width:200px" placeholder="商家名称" name="name" value="{$Request.param.name}">
    <input type="text" class="input-text" style="width:200px" placeholder="商家手机" name="phone" value="{$Request.param.phone}">
    <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

</form>
<script>
    function selectType(fid,sid,tid,str) {
        $('#sel-types').val(str);
        $('input[name=types_first_id]').val(fid);
        $('input[name=types_second_id]').val(sid);
        $('input[name=types_third_id]').val(tid);
    }
</script>